import request from '_r/request'

const api_name = 'notice'

// 获取公告列表
export function getNoticeList(data) {
	return request({
		url: `${api_name}/list`,
		method: 'get',
		params: data
	})
}

// 获取公告详情
export function getNoticeDetail(noticeId) {
	return request({
		url: `${api_name}/${noticeId}`,
		method: 'get',
	})
}
